import request from '/util/request.js'
// 左侧栏目列表渲染
export function getColumnList(data) {
	return request({
		url: 'api/Wanxiit/Training4/QueryDataGroup',
		method: 'get',
		params:data
	})
}

// 文章列表渲染
export function getEssayList(data) {
	return request({
		url: 'apiss/DataAccessWithGroup/QueryPagingList',
		method: 'post',
		data
	})
}

//新建文章
export function setEssayList(data) {
	return request({
		url: 'apiss/DataAccessWithGroup/CreateDataRow',
		method: 'post',
		data
	})
}
// 删除文章
export function DeleteArticle(data) {
	return request({
		url: 'apiss/DataAccessWithGroup/DeleteDataRow',
		method: 'delete',
		params:data
	})
}
// 文章编辑
    // 文章详情数据
    export function DetailedDataRow(data) {
        return request({
            url: 'apiss/DataAccessWithGroup/DetailedDataRow',
            method: 'post',
            data
        })
    }
    // 文章修改
    export function UpdateDataRow(data) {
        return request({
            url: 'apiss/DataAccessWithGroup/UpdateDataRow',
            method: 'post',
            data
        })
    }
//上传图片文件
export function setUploadPictures(data) {
	return request({
		url: 'apiss/FileServSystemMgt/FileUpload',
		method: 'post',
		data
	})
}
//图片文件列表渲染
export function getPicturesList(data) {
	return request({
		url: 'apiss/FileServSystemMgt/FileList',
		method: 'post',
		data
	})
}
//删除图片文件
export function DeletePictures(data) {
	return request({
		url: 'apiss/FileServSystemMgt/DelFileSingle',
		method: 'post',
		data
	})
}
export default{getColumnList,getEssayList,setEssayList,DeleteArticle,DetailedDataRow,UpdateDataRow,
                setUploadPictures,getPicturesList,DeletePictures}